package com.example.s05_shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName(value = "product")
public class Product {

    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    @TableField(value = "name")
    private String name;
    @TableField(value = "intro")
    private String intro;
    @TableField(value = "price")
    BigDecimal price;
    @TableField(value = "market_price")
    BigDecimal marketPrice;
    @TableField(value = "pic")
    String pic;
    @TableField(value = "c_id")
    int cid;
}